<extend name="Public/base" />

<block name="body">
    <div class="main-title">
        <h2>发布产品</h2>
    </div>
    <form action="{:U('Goods/add')}" method="post" class="form-horizontal" enctype="multipart/form-data">
        <div class="form-item">
                <label class="item-label">产品分类</label>
                <div class="controls">
                    <select name="cat_name">
                        <volist name="products" id="v">
                            <option value="{$v.id}">{$v.name}</option>
                        </volist>
                    </select>
                </div>
        </div>
        <div class="form-item">
            <label class="item-label">产品型号</label>
            <div class="controls">
                <input type="text" class="text input-large" name="cat_name" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">产品描述</label>
            <div class="controls">
                <textarea name="content">{$value}</textarea>
                <!-- {:hook('documentEditFormContent',array('name'=>'content'))} -->
                {:hook('adminArticleEdit', array('name'=>content,'value'=>$value))}
            </div>
        </div>
        <div class="form-item">
                <label class="item-label">封面图片</label>
                <div class="controls">
                    <input type="file" class="text input-large" name="pic" value="">
                </div>
        </div>
        
        <!-- <input type="submit" value="测试"> -->
        <div class="form-item">
                <button type="submit " class="btn submit-btn" >提交</button>
                <!-- <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button> -->
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
    
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Goods/add')}');
    </script>
</block>